// app/model/user.js
module.exports = (app) => {
	const {
		STRING,
		INTEGER,
		BIGINT,
		DATE
	} = app.Sequelize;
	const Goods = app.model.define("goods", {
		id: {
			type: INTEGER,
			primaryKey: true,
			autoIncrement: true
		},
		name: STRING,
		picUrl: STRING,
		brief: INTEGER,
	}, {
		tableName: "dts_goods",
		paranoid: false,
		timestamps: false,
		freezeTableName: true
	});

	return Goods;
};
